package com.example.makerspace.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.makerspace.domain.ExpertOutcomeDO;
import com.example.makerspace.vo.OutComeExpertVO;
import com.example.makerspace.vo.TaskOutComeScoreVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ExpertOutcomeMapper extends BaseMapper<ExpertOutcomeDO> {

    @Select("select teo.*,teps.score  from t_expert_product_score teps  right join  t_expert_outcome teo  on  teps.outcome_id =teo.id")
    List<TaskOutComeScoreVO> getBookAndUser(Page<TaskOutComeScoreVO> page);
}
